# -*- coding: utf-8 -*-
"""
@Project: base_python
@File: name_function.py
@Author: PC
@Date: 2025/2/11
@Description: 
"""
def get_formatted_name(first,last,middle=''):
    """生成整洁的姓名"""
    if middle:
        full_name = first+' '+middle+' '+last
    else:
        full_name = first+' '+last
    return full_name.title()